package org.grenobus.html;

import java.util.ArrayList;
import java.util.List;

public class FieldSelect extends Field {

	public class SelectPair {
		public String value;
		public String display;
		
		SelectPair(String v, String d) {
			value = v;
			display = d;
		}
	}
	
	List<SelectPair> fChoices = new ArrayList<SelectPair>();
	
	public FieldSelect(String name) {
		super(name);
	}
	
	public void addChoice(String value, String display) {
		fChoices.add(new SelectPair(value, display));
	}

	public List<SelectPair> getChoices() {
		return fChoices;
	}
}
